package scjp.preparation.designpatterns.singleton;

public class Logger {
	
	public static Logger instance;
	
	public static synchronized Logger getInstance() {
		if(instance == null) {
			instance = new Logger();
		}
		return instance;
	}
	private Logger() {};
	
	public void log(String s) {
		System.out.println(s);
	}

}
